package org.binglan.youziyuepai.service;

import org.binglan.youziyuepai.entity.ActivityToOccupation;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 活动职业多对多表 服务类
 * </p>
 *
 * @author sanjin
 * @since 2019-04-09
 */
public interface ActivityToOccupationService extends IService<ActivityToOccupation> {

    /**
     * 批量保存
     * @param activityToOccupationList
     * @return
     */
    Boolean saveActivityToOccupationBatch(List<ActivityToOccupation> activityToOccupationList);

    /**
     * 通过 activityId 查找活动所需的职业以及 id
     * @return
     */
    Map<String, Integer> queryByActivityId(Integer activityId);

    /**
     * 通过 activityId 查找对象
     */
    List<ActivityToOccupation> queryActivityToOccupationsByActivityId(Integer activityId);
}
